from flask import (
    send_from_directory, Blueprint, flash, g, redirect, render_template, request, session, url_for, current_app, app
)
from werkzeug.security import check_password_hash, generate_password_hash
from.auth import login_required

bp = Blueprint('static_image', __name__, url_prefix='/static')


@bp.route('/drawing_result/<path:path>',methods=['GET',])
# @login_required
def get_static_image(path):
    if request.method == 'GET':
        return send_from_directory(current_app.root_path+'/static/drawing_result',path+'.png')

